﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;

namespace AncientLand.Service.Entity
{
   public abstract class Category
    {
       [Key]
       public int Id { get; set; }
       
       [Required(ErrorMessage = "必须填写分类名称")]
       [StringLength(50, ErrorMessage = "分类必须在50个字符范围内")]
       [Display(Name = "分类")]
       public string Name { get; set;}

       
       [Display(Name="封面路径")]
       [StringLength(350)]
       public string ThumbnailPath { get; set; }

       public DateTime CreatedTime { get; set; }
    }
   public class WeddingCategory : Category
   {

   }

   public class PictorialCategory : Category
   {

   }
}
